package com.xiaofeng.pochi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaofeng.pochi.common.Page;
import com.xiaofeng.pochi.pojo.SysMenu;
import com.xiaofeng.pochi.pojo.SysRole;
import com.xiaofeng.pochi.pojo.vo.RouterVo;
import com.xiaofeng.pochi.pojo.vo.SysMenuVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/07/30/22:48
 * @Description:
 */
public interface SysMenuService extends IService<SysMenu> {
    //根据id修改
    void editById(SysMenu sysMenu);

    Page<SysMenu> getByPage(Page<SysMenu> page);

    //保存菜单
    void saveMenu(SysMenu sysMenu);

    SysMenu get(Long id);

    List<SysMenuVo> getTreeList();

    List<Long> getRoleSelectMenu(Long roleId);

    List<RouterVo> getRouters();
}
